#include "ServiceRequestTask.h"

namespace Impp
{

ServiceRequestTask::ServiceRequestTask(Oscar* oscar) :
	Task(TASK_SERVICE_CONNECTION_REQUEST,oscar,TASK_HANDLE_SPECIAL,(qword)SPECIAL_HANDLE_SERVICEREQUEST,(time_t)20)
{
}

ServiceRequestTask::~ServiceRequestTask()
{

}

void ServiceRequestTask::failed(){
	oscar->serviceRequestTimedOut();
}

void ServiceRequestTask::timedOut(){
	oscar->serviceRequestTimedOut();
	wxLogDebug(wxT("ServiceRequestTask::timedOut: failed!"));
}

LoginCookie* ServiceRequestTask::getCookiePointer(){
	return &serviceCookie;
}


}
